#include<iostream>
#include<string.h>


int caculate(const int*, const int*, int (*func)(const int* num1, const int* num2));
int sum(const int* num1, const int* num2);
int min(const int* num1, const int* num2);

int main(){
    using namespace std;
    int num1, num2, res;
    char opt;
    cin >> num1 >> opt >> num2 ;
    switch (opt)
    {
    case '+':
        res = caculate(&num1,&num2,sum);break;
    case '-':
        res = caculate(&num1,&num2,min);
        break;
    
    default:
        break;
    }
    cout << num1 << " " << opt << " "  << num2 << " = "  << res << endl;
    

    return 0;
}

int caculate(const int* num1, const int* num2, int (*func)(const int* num1, const int* num2)){

    return func(num1,num2);
}

int sum(const int* num1, const int* num2){
    return (*num1 + *num2);
}

int min(const int* num1, const int* num2){
    return (*num1 - *num2);
}